package it.unina.lab.anm;

import it.unina.lab.anm.activity.SplashScreenActivity;
import it.unina.lab.anm.dao.DatabaseService;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;


public class InfoBusAnm extends Activity {
	
	/**
     *     
     */
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		
		Log.i("ANM", "onCreateApplication");
		DatabaseService my_db = DatabaseService.getDatabaseServiceIstance(this);
		my_db.open();
		my_db.close();
		Intent next = new Intent(this, SplashScreenActivity.class);
		startActivity(next);
		finish();
	}
	
	/**
	 * 
	 */
	@Override
	protected void onActivityResult(int requestCode, int resultCode, Intent data) {
		super.onActivityResult(requestCode, resultCode, data);
		finish();
	}

}
